package com.leyou.item.inter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zqq
 * @ClassName SpuPageDTO
 * @Description：商品分页查询参数类
 * @date 2020/3/7-9:51
 */
@Data
@ApiModel(value = "SpuPageDTO", description = "商品分页查询参数类")
public class SpuPageDTO {

    /** 当前页 */
    @ApiModelProperty(value = "当前页，默认第一页", name = "page")
    private int page = 1;

    /** 每页条数 */
    @ApiModelProperty(value = "每页条数，默认每页5条", name = "rows")
    private int rows = 5;

    /** 过滤条件 */
    @ApiModelProperty(value = "过滤条件", name = "key")
    private String key;

    /** 上架或下架 */
    @ApiModelProperty(value = "上架或下架", name = "saleable")
    private Boolean saleable;
}
